package top.jybill.domain;

import com.fasterxml.jackson.annotation.JsonIgnoreProperties;

import java.io.Serializable;
import java.util.List;

/**
 * 权限
 *      : 角色 more : more
 */
public class Permission implements Serializable {
  private String id;
  private String permissionName;
  private String url;
  private List<Role> roles;

  public String getId() {
    return id;
  }

  public void setId(String id) {
    this.id = id;
  }

  public String getPermissionName() {
    return permissionName;
  }

  public void setPermissionName(String permissionName) {
    this.permissionName = permissionName;
  }

  public String getUrl() {
    return url;
  }

  public void setUrl(String url) {
    this.url = url;
  }

  public List<Role> getRoles() {
    return roles;
  }

  public void setRoles(List<Role> roles) {
    this.roles = roles;
  }

  @Override
  public String toString() {
    return "Permission{" +
            "id='" + id + '\'' +
            ", permissionName='" + permissionName + '\'' +
            ", url='" + url + '\'' +
            ", roles=" + roles +
            '}';
  }
}
